﻿<%@ Page Language="C#" MasterPageFile="~/membercenter/membercenter.Master" AutoEventWireup="true" CodeBehind="make_convert_orders.aspx.cs" Inherits="YXShop.Web.membercenter.product.make_convert_orders" %>

<asp:Content ID="ContHead" runat="server" ContentPlaceHolderID="head">
    <link href="../../style/validator.css" rel="stylesheet" type="text/css" />
    <link href="../../style/toolbar.css" rel="stylesheet" type="text/css" />
    <link href="../../style/mian.css" rel="stylesheet" type="text/css" />
    <script src="../../scripts/prototype.js" type="text/javascript"></script>
    <script language="javascript">
    function PayMent(str)
     {
 	    var payMethod=document.getElementsByName("paymentMethod");
        if(str=="Bank")
	    {

	       document.getElementById("Banks").style.display="";
	       document.getElementById("onlines").style.display="none";
	    }
	    else
	    {
	       document.getElementById("Banks").style.display="none";
	       document.getElementById("onlines").style.display="";
	    }
     }
     
     //省份
    function Province(str)
    {
        ProvinceSendAjax("Province",str);
    }

    function ProvinceSendAjax(op,str)
    {
        var param = "Option="+ op +"&ProvinceId="+ str;
        var options=
        {
            method:'post',
            parameters:param,
            onComplete:
            function(transport)
            {
                var retv=transport.responseText;
                document.getElementById("CityDiv").innerHTML=retv;
            }     
        }
        new  Ajax.Request('make_convert_orders.aspx',options);
    }

    //城区
    function Citys(str)
    {
        CitysSendAjax("Citys",str);
    }

    function CitysSendAjax(op,str)
    {
        var param = "Option="+ op +"&CitysId="+ str;
        var options=
        {
            method:'post',
            parameters:param,
            onComplete:
            function(transport)
            {
                var retv=transport.responseText;
                document.getElementById("City2Div").innerHTML=retv;
            }     
        }
        new  Ajax.Request('make_convert_orders.aspx',options);
    }
    </script>
</asp:Content>
<asp:Content ID="ContTitle" runat="server" ContentPlaceHolderID="pagetitle">
转成订单
</asp:Content>
<asp:Content ID="ContInfo" runat="server" ContentPlaceHolderID="pageinfo">
转成订单 &nbsp;<asp:Button ID="butSave" runat="server" Text="提交" 
        onclick="butSave_Click" />&nbsp;<a href="#" onclick="javascript:window.history.back()">返回上一级</a>
</asp:Content>
<asp:Content ID="ContMain" runat="server" ContentPlaceHolderID="workspace">
<table width="100%"  cellspacing="0" cellpadding="0" border="1" bordercolorlight="#DDDDDD" bordercolordark="#FFFFFF">
  <tr>
    <td class="form_text_row">收货人姓名：</td>
    <td>
        <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
    </td>
    <td class="form_text_row">收货人邮编：</td>
    <td>
        <asp:TextBox ID="txtCode" runat="server"></asp:TextBox>
    </td>
  </tr>
  <tr>
    <td class="form_text_row">收货人地址：</td>
    <td>
        <asp:TextBox ID="txtAddress" runat="server"></asp:TextBox>
    </td>
    <td class="form_text_row">收货人手机：</td>
    <td>
        <asp:TextBox ID="txtMobile" runat="server"></asp:TextBox>
    </td>
  </tr>
  <tr>
    <td class="form_text_row">收货人电话：</td>
    <td>
        <asp:TextBox ID="txtTel" runat="server"></asp:TextBox>
    </td>
    <td class="form_text_row">收货人E-mail：</td>
    <td>
        <asp:TextBox ID="txtMail" runat="server"></asp:TextBox>
    </td>
  </tr>
  <tr>
    <td class="form_text_row">收货人传真：</td>
    <td colspan="3">
        <asp:TextBox ID="txtFax" runat="server"></asp:TextBox>
    </td>
  </tr>
  <tr>
    <td class="form_text_row">收货人省份：</td>
    <td colspan="3">
        <asp:Literal ID="Provinces" runat="server"></asp:Literal>
    </td>
  </tr>
</table>
<table width="100%"  cellspacing="0" cellpadding="0" border="1" bordercolorlight="#DDDDDD" bordercolordark="#FFFFFF">
  <tr height="24px">
    <td class="form_text_row">付款方式 
        <input type="radio" name="PaymentType" onclick="PayMent('Bank')" value="1" id="RadioGroup1_0" />银行转帐 
        <input type="radio" name="PaymentType" onclick="PayMent('online')" checked="checked" value="2" id="RadioGroup1_1" />在线支付
    </td>
  </tr>
  <tr>
    <td>
        <!--在线支付信息-->
        <div id="onlines">
            <asp:Literal ID="lblList" runat="server"></asp:Literal>
        </div>
        <!--银行信息-->
        <div id="Banks" style="display:none">
            <asp:Literal ID="lblBankList" runat="server"></asp:Literal>
        </div>
    </td>
  </tr>
</table>
<table width="100%"  cellspacing="0" cellpadding="0" border="1" bordercolorlight="#DDDDDD" bordercolordark="#FFFFFF">
  <tr height="24px">
    <td class="form_text_row">配送信息 
    </td>
  </tr>
  <tr>
    <td><asp:Literal ID="DeliveryInfoList" runat="server"></asp:Literal></td>
  </tr>
</table>
</asp:Content>
